package cn.lili.controller.runner;

import cn.lili.modules.search.service.EsGoodsIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class TestRunner implements ApplicationRunner {

    @Autowired
    private EsGoodsIndexService esGoodsIndexService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
//        System.out.println("==================重新生成商品索引=====");
//        esGoodsIndexService.init();
    }
}
